local rect = require 'types.rect'
local map = require 'maps.map'
--require 'maps.map_shop.page'
--require 'maps.map_shop.affix'

local home_shop
local trainingNpcs = {}

local function create_shop()
	local left = 5
	local right = 10

	local face = 0
	--for i = 1, 1 do
	--	local rect = rect.j_rect("shop_" .. i)
	--	if i > left and i <= right then
	--		face = 180
	--	elseif i > right then
	--		face = 90
	--	end
	--	local l_shop = ac.shop.my_create(g_playerMgr(1), '商店A', rect, face, '商店技能')
	--	local page_1 = ac.shop.createPage ('商店' .. i)
	--	[[
	--		~		!武器22		!武器23		<93
	--		!武器24		!武器25		!武器26		#主页
	--		!武器27		!武器28		!武器29		>93
	--	]]
	--	l_shop:setCurrentPage(page_1)
	--end

	-- 基地
	local rect = rect.j_rect("home")
	local home = g_unitMgr:create_unit(g_playerMgr(1), 'b00S', rect, 90)
	home:set_size(4)
	home:add_ability 'Aneu'

	for i = 1, 6 do
		local u = g_unitMgr:create_unit(g_playerMgr(i), 't001', map.rects['练功房Npc'][i], -90)
		table.insert(trainingNpcs, u)
	end
end

create_shop()
